package org.sky.framework.exception;

/**
 * 自定义异常
 * 
 * @author gaofu
 *
 */
public abstract class AbstractException extends Exception {
	private static final long serialVersionUID = 4944600457395609697L;

	public AbstractException() {
		super();
	}

	public AbstractException(String message) {
		super(message);
	}

	public AbstractException(String message, Throwable cause) {
		super(message, cause);
	}

	public AbstractException(Throwable cause) {
		super(cause);
	}

	/**
	 * 获取异常编码
	 * 
	 * @return
	 */
	public abstract String getErrcode();

	/**
	 * 设置异常编码
	 * 
	 * @param errcode
	 */
	public abstract void setErrcode(String errcode);

	/**
	 * 获取异常信息
	 * 
	 * @return
	 */
	public abstract String getErrmsg();

	/**
	 * 设置异常信息
	 * 
	 * @param errmsg
	 */
	public abstract void setErrmsg(String errmsg);

}
